package excel;

//import com.alibaba.excel.metadata.BaseRowModel;
import com.entity.dto.Demo;
import com.entity.dto.Demo1;
import excel.poi.Excel;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * <p>
 * 车辆导入
 * </p>
 *
 * @author system
 * @since 2021-04-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class CarExcelReq implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 车牌号
     */
    @Excel(name = "车牌号", maxLength = 10)
    private String carNo;

    /**
     * 车架号
     */
    @Excel(name = "车架号", prompt = "必填项", isRequired = true, maxLength = 18)
    private String vin;

    /**
     * 发动机号
     */
    @Excel(name = "发动机号", prompt = "必填项", isRequired = true, maxLength = 15)
    private String engineNo;

   /* *//**
     * 电池编号
     *//*
    @Excel(name = "电池编号", maxLength = 24)
    private String batteryNo;

    *//**
     * 颜色
     *//*
    @Excel(name = "颜色", maxLength = 6)
    private String color;

    *//**
     * 车型uuid
     *//*
    @Excel(name = "车型名称", maxLength = 50)
    private String carModelName;

    *//**
     * 业务类型： 1出租车 2网约车
     *//*
    @Excel(name = "业务类型", combo = {"出租车", "网约车"}, readConverterExp = "1=出租车,2=网约车")
    private Integer bizType;

    *//**
     * 车辆属性： 1自购 2挂靠
     *//*
    @Excel(name = "车辆属性", prompt = "必填项", combo = {"自购", "挂靠"}, readConverterExp = "1=自购,2=挂靠", isRequired = true)
    private Integer sourceNature;

    *//**
     * 购买日期
     *//*
    @Excel(name = "购买日期")
    private Date purchaseDate;

    *//**
     * 车库名称
     *//*
    @Excel(name = "车库名称")
    private String garageName;

    *//**
     * 车辆类型： 1燃油车 2新能源 3混动新能源
     *//*
    @Excel(name = "车辆类型", prompt = "必填项", combo = {"燃油车", "新能源", "混动新能源"},
            readConverterExp = "1=燃油车,2=新能源,3=混动新能源", isRequired = true)
    private Integer energyType;

    *//**
     * 创建时间
     *//*
    @Excel(name = "创建时间", maxLength = 10, dateFormat = "yyyy-MM-dd")
    private Date createTime;

    */

    @Excel(name = "name",targetAttr = ".Demo")
    private String name;
    @Excel(name = "age",targetAttr = ".Demo")
    private String age;

    @Excel(name = "name1",targetAttr = "Demo1")
    private String name1;
    @Excel(name = "age1",targetAttr = "Demo1")
    private String age1;

    @Excel(name = "name2",targetAttr = ".Demo2")
    private String name2;
    @Excel(name = "age2",targetAttr = ".Demo2")
    private String age2;


    private List<Demo> demoList;
}
